package four;

public class Vehicle {
    private double speed = 0;
    private int power = 0;

    public double getSpeed() {
        return this.speed;
    }

    public void setPower(int p) {
        this.power = p;
    }

    public int getPower() {
        return this.power;
    }

    public void speedUp(int s) {
        this.speed += s;
    }

    public void speedDown(int s) {
        this.speed -= s;
    }

}
